BaseSubsystem.AddLWordVariable method
Add a user-defined variable in unsigned long integer.
Namespace: IntervalZero.KINGSTAR.Base.Class
Assembly: IntervalZero.KINGSTAR.Base.Class (in IntervalZero.KINGSTAR.Base.dll) Version: 4.4.0.0
Syntax
IUserVariable<ulong> AddLWordVariable(
string Name,
IUserVariable Parent = null
)
Function AddLWordVariable(
Name As String,
Parent = null As IUserVariable
) As IUserVariable(Of ULong)
Parameters
Name
Type: string
The name of a variable.
Parent
Type: IUserVariable
Default value: null
The parent folder of IUserVariable. By default, it adds variables to the root folder.
Remarks
- The Name string uses UTF-16 encoding.
- You can add up to 64 variables to the root folder.
- The variable can be used in KINGSTAR Scope and a real-time log.
Return value
Type: IUserVariable<ulong>
Returns a user-defined variable in unsigned long integer.
Usable EtherCAT states
ecatOffline, ecatInit, ecatBoot, ecatPreOP, ecatSafeOP, ecatOP
See also